﻿@model EventSys.BussinesEntities.Ubicacion

@{
    ViewBag.Title = "CreateDos";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>CreateDos</h2>

 @using (Html.BeginForm())
    {
        @Html.ValidationSummary(true, "Corrija errores, vuelva a ubicar un punto")
        <fieldset>
            <legend>Registrando Nueva Ubicación</legend>

            <table>
                <td>
                    <div id="DonorsDiv">
                        @*@Html.EditorForModel()*@
                        <div class="editor-label">
                            @Html.LabelFor(model => model.Descripcion)
                        </div>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.Descripcion)
                            @Html.ValidationMessageFor(model => model.Descripcion)
                        </div>
                        @*--*@
                        <div class="editor-label">
                            @* @Html.LabelFor(model => model.Address)*@Dirección de Ubicación
                        </div>
                        <div class="editor-field">
                            @Html.EditorFor(model => model.Address)
                            @Html.ValidationMessageFor(model => model.Address)
                        </div>

                        <div class="editor-label">
                            @Html.HiddenFor(model => model.Latitude)
                        </div>
                        <div class="editor-field">
                            @Html.HiddenFor(model => model.Latitude)
                            @Html.ValidationMessageFor(model => model.Latitude)
                        </div>

                        <div class="editor-label">
                            @Html.HiddenFor(model => model.Longitude)
                        </div>
                        <div class="editor-field">
                            @Html.HiddenFor(model => model.Longitude)
                            @Html.ValidationMessageFor(model => model.Longitude)
                        </div>

                        <p>
                            <input type="submit" value="Registrar" class="k-button" />
                        </p>
                    </div>

                </td>
                <td>
                    <div id="theMap" style="width: 520px">@Html.Partial("_Map")</div>

                </td>
            </table>
            @* @Html.ActionLink("Back to List", "Index") *@
        </fieldset>
   
}